home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
4_0
/
MUBBS_MO
/
SERIAL_M
/
HOOK_STU.H
< prev
next >
Wrap
Text File
|
1991-11-04
|
454b
|
22 lines
/* this is stuff so that we can call routines in a CODE Resource
* with a pointer. It's faster than calling the resource through
* the resource manager, that's why we do this !
*/
static
__storeA4()
{
asm {
bsr.s @1
dc.l 0 ; store A4 here
@1 move.l (sp)+,a1
}
}
#define storeA4() __storeA4(); asm { move.l a4,(a1) }
#define getA4() asm { move.l a4,-(sp) } __storeA4(); asm { move.l (a1),a4 }
#define getoldA4() asm { move.l (sp)+,a4 }